<?php include_once("../../../common/common_setting_unit.php");         // 引入通用的设置文件 ?>
<?php include_once(ROOT_PATH_ . "/controller/common/module/head.php"); // 引入通用的头部 ?>
<?php include_once("../controller/setting_edit_process.php");                     // 当前页面的控制器 ?>



<body>

<!--顶部栏-->
<div id="topbar"> <?php include ROOT_PATH_ . '/controller/common/module/topbar.php'; ?></div>

<!--容器-->
<div id="container" class="<? echo $now_extender ?>">


    <!--侧边栏-->
    <div id="sidebar"><?php include ROOT_PATH_ . '/controller/common/module/sidebar.php'; ?></div>





    <div id="content" class="layui-form">

        <?
        //==============================================================================
        //这里开始才是平常开发需要注重的部分，其余的基本不用理会
        //==============================================================================
        ?>




    <?php
    //接收需要修改的数据的id
    $nid          = addslashes($_REQUEST['nid']);
    if(!$new_detail_nid ){$new_detail_nid          = 1;}

    //传递过来的页面信息。返回的时候，会根据这些信息返回原来的页面

    $sys_part                   = addslashes($_REQUEST['now_extender']);
    $_REQUEST['ai_authur']      = $_SESSION['username'];
    $_REQUEST['ai_ip']          = $_SERVER["REMOTE_ADDR"];


    //分号统一转换成英文分号
    $_REQUEST['ai_tag']=str_replace("；",";",$_REQUEST['ai_tag']);
    //$_REQUEST['ai_rank']=str_replace("；",";",$_REQUEST['ai_rank']);
    //$_REQUEST['ai_customer_source']=str_replace("；",";",$_REQUEST['ai_customer_source']);
    //$_REQUEST['ai_contact_way']=str_replace("；",";",$_REQUEST['ai_contact_way']);
    //$_REQUEST['ai_industry_type']=str_replace("；",";",$_REQUEST['ai_industry_type']);


    $sql=update_date($table_prefix.$_plate['table']['setting'],$_REQUEST,"nid",$nid);
    $query = mysql_query($sql) or die ("error:".mysql_error());

    ?>

    <script type="text/javascript">
        alert("输入信息已保存，点击确认返回继续操作.");
        document.location.href = "setting.php?now_extender=<?echo $sys_part?>"
    </script>




</div>
    <!--content端點01-->
    <?
    //==============================================================================
    //这里上面才是平常开发需要注重的部分，下面的基本不用理会，只有底部JS部分需要根据实际情况去加载
    //==============================================================================
    ?>



</div>

    <br class="clearfloat"/>
    <!--container-->
</div>




<!--底部栏-->
<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?>



</body>
</html>
